const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
})

module.exports = {
  devServer: {
    port: 8081, // 前端端口号，
    proxy: {
      '/api': {
        target:'http://localhost:8080',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/'
        }
      },
      '/mock':{
        target:'http://127.0.0.1:4523/m1/2809085-0-default',
        changeOrigin: true,
        pathRewrite: {
          '^/mock': '/'
        }
      }
    },
  }
}
